<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            font-size: 30px;
            color: #fff;
        }
        
        .d1 {
            background-color: red;
            /*X轴放大一倍*/
            transform: scaleX(2);
        }
        
        .d2 {
            background-color: yellowgreen;
            /* Y轴缩小一倍 */
            transform: scaleY(0.5);
        }
        
        .d3 {
            background-color: rgb(41, 231, 231);
            /*  X Y轴 同时放大3*/
            transform: scale(3);
            /* 0代表消失 */
            transform: scale(0);
        }
        
        .d4 {
            background-color: rgb(197, 58, 186);
            /* X轴  负值代表镜面翻转，倍数同样管用 */
            transform: scaleX(-1);
            transform: scaleY(-1);
            transform: scale(-1);
        }
    </style>

</head>

<body>
    <!-- 缩放 -->
    <div class="d1">周大帅哥</div>
    <div class="d2">涛桑</div>
    <div class="d3">亮桑</div>
    <div class="d4">东桑</div>
</body>

</html>